package spark.network;

import spark.network.protocol.Base;

import java.net.InetSocketAddress;

public interface IConnections {
	public boolean isValid(InetSocketAddress source, Base packet);

	/**
	 * Fetches a network connection.
	 * @param session Session of the client to look for.
	 * @return Connection that matched, null if no client was found matching the provided data.
	 */
	public NetworkConnection getConnection(long session);
}
